package com.example.do_an_haputech;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Spinner;

public class MainActivity<GoogleMap> extends Activity {
	Button btn_tim;
	EditText edt_nhap;
	GoogleMap mGoogleMap;
	Spinner mSprPlaceType;
	String[] mPlaceType=null;
    String[] mPlaceTypeName=null;
    
    double mLatitude=0;
    double mLongitude=0;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		
		edt_nhap=(EditText)findViewById(R.id.edt_nhap);
		btn_tim=(Button)findViewById(R.id.btn_tim);
		
		 mPlaceType = getResources().getStringArray(R.array.place_type);
		 mPlaceTypeName = getResources().getStringArray(R.array.place_type_name);
		 ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, mPlaceTypeName);
		 mSprPlaceType = (Spinner) findViewById(R.id.spr_place_type);
		 
		 mSprPlaceType.setAdapter(adapter);
		 Button btnFind;
		 
	        btnFind = ( Button ) findViewById(R.id.btn_find);
	        
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
